﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Directora.Master" AutoEventWireup="true" CodeBehind="ModificarPrograma.aspx.cs" Inherits="Interfaces.Programa.ModificarPrograma" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style3
        {
            width: 122px;
            text-align: left;
        }
        .style5
        {
            width: 389px;
        }
        .style6
        {
            width: 222px;
        }
        .style7
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <asp:Panel ID="Panel1" runat="server">
                        <asp:Panel ID="Panel2" runat="server" GroupingText="Modificar Programa" 
                            style="text-align: center">
                            <table style="width:100%;">
                                <tr>
                                    <td class="style3">
                                        Nombre:
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="nombreTbx" runat="server" Height="19px" MaxLength="50" 
                                            Width="238px"></asp:TextBox>
                                        <ajaxToolkit:TextBoxWatermarkExtender ID="nombreTbx_TextBoxWatermarkExtender" 
                                            runat="server" TargetControlID="nombreTbx" 
                                            WatermarkText="Ingrese el nombre del programa">
                                        </ajaxToolkit:TextBoxWatermarkExtender>
                                    </td>
                                    <td class="style7">
                                        Area:
                                        <asp:DropDownList ID="DropDownList1" runat="server" 
                                            DataSourceID="SqlDataSource1" DataTextField="Area" DataValueField="Area">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        Fecha Inicio:
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="TextBox4" runat="server" Height="19px" MaxLength="10" Enabled="false" 
                                            Width="238px"></asp:TextBox>
                                        <ajaxToolkit:CalendarExtender ID="TextBox4_CalendarExtender" runat="server" 
                                            Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton1" TargetControlID="TextBox4">
                                        </ajaxToolkit:CalendarExtender>
                                        <asp:ImageButton ID="ImageButton1" runat="server" 
                                            ImageUrl="~/Images/calendar.jpg" />
                                    </td>
                                    <td class="style7">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        Fecha Fin:</td>
                                    <td class="style7">
                                        <asp:TextBox ID="TextBox5" runat="server" Height="19px" MaxLength="10" Enabled="false"
                                         Width="238px"></asp:TextBox>
                                        <ajaxToolkit:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" 
                                            Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton2" TargetControlID="TextBox5">
                                        </ajaxToolkit:CalendarExtender>
                                        <asp:ImageButton ID="ImageButton2" runat="server" 
                                            ImageUrl="~/Images/calendar.jpg" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <asp:Button ID="Button8" runat="server" onclick="Button1_Click" 
                                Text="Editar Directoras" CssClass=JCIstyle/>
                            <asp:Panel ID="Panel4" runat="server" GroupingText="Directoras">
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label8" runat="server" Text="Directora:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="nombre" runat="server"></asp:Label>
                                            <asp:Button ID="Button2" runat="server" Height="24px" onclick="Button2_Click" 
                                                Text="Eliminar Codirectora" Visible="False" Width="157px" CssClass=JCIstyle/>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label13" runat="server" Text="Lista de Codirectoras:" 
                                                Visible="False"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:DataList ID="CodirectorasDataList0" runat="server">
                                                <HeaderTemplate>
                                                    <tr style="color: #000000">
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            <asp:Label ID="LabNombre0" runat="server">Nombre</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            <asp:Label ID="Apellido2" runat="server">Apellido</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            &nbsp;<asp:Label ID="Cargo0" runat="server">Cargo</asp:Label>
                                                        </td>
                                                    </tr>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr style="color: #000000">
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="nombre0" runat="server" Text='<%# Eval("Nombre") %>'></asp:Label>
                                                        </td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="Apellido1" runat="server" Text='<%# Eval("ApellidoPaterno") %>'></asp:Label>
                                                        </td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="Cargo1" runat="server" Text='<% #Eval("Cargo")%>'></asp:Label>
                                                        </td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:LinkButton ID="DireButn0" runat="server" 
                                                                CommandArgument='<%#Eval("CI") %>' OnClick="Button6_Click">Eliminar</asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:DataList>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Label ID="error" runat="server" ForeColor="Red"></asp:Label>
                            <br />
                            <asp:Button ID="Button9" runat="server" onclick="Button9_Click" 
                                Text="Guardar Cambios" CssClass=JCIstyle/>
                            <br />
                        </asp:Panel>
                        <asp:Label ID="Label9" runat="server" Visible="false"></asp:Label>
                <br />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="Data Source=JCIDatabase.db.10200093.hostedresource.com; Initial Catalog=JCIDatabase; User ID=JCIDatabase; Password='ucbJCI2012!'"
                            SelectCommand="SELECT [Area] FROM [Area]"></asp:SqlDataSource>
                    </asp:Panel>
                </asp:View>
                <asp:View ID="View2" runat="server">
            <br />
                    <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar Miembro" 
                        style="text-align: center">
                        <asp:TextBox ID="TextBox6" runat="server" Height="21px" Width="206px"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBox6_TextBoxWatermarkExtender" 
                            runat="server" TargetControlID="TextBox6" 
                            WatermarkText="Ingrese el nombre de la directora">
                        </ajaxToolkit:TextBoxWatermarkExtender>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Buscar" CssClass="JCIstyle"/>
                <br />
                        <table style="width:100%;">
                            <tr>
                                <td class="style6">
                                    &nbsp;</td>
                                <td class="style5">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    &nbsp;</td>
                                <td class="style5">
                                    <asp:DataList ID="Miembros" runat="server" style="margin-left: 0px" 
                                        Width="582px">
                                        <HeaderTemplate>
                                            <tr style="color: #000000">
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    <asp:Label ID="LabCI" runat="server">CI</asp:Label>
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    &nbsp;<asp:Label ID="LabNombre" runat="server">Nombre</asp:Label>
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    &nbsp;<asp:Label ID="Apellido" runat="server">Apellido</asp:Label>
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    &nbsp;<asp:Label ID="Cargo" runat="server">Cargo</asp:Label>
                                                </td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    &nbsp;<asp:Label ID="Directora" runat="server">Directora</asp:Label>
                                                    &nbsp;</td>
                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                    <asp:Label ID="Codirectora" runat="server">Codirectora</asp:Label>
                                                </td>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr style="color: #000000">
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="CI" runat="server" Text='<%#Eval("CI") %>'></asp:Label>
                                                    &nbsp;</td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="nombre3" runat="server" Text='<%#Eval("Nombre")%>'></asp:Label>
                                                    &nbsp;</td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="Apellido0" runat="server" Text='<%#Eval("ApellidoPaterno") %>'></asp:Label>
                                                    &nbsp;</td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:Label ID="Cargo3" runat="server" Text='<% #Eval("Cargo")%>'></asp:Label>
                                                    &nbsp;</td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="DireButn" runat="server" CommandArgument='<%#Eval("CI") %>' 
                                                        OnClick="DirectorBtn_Click">Directora</asp:LinkButton>
                                                    &nbsp;</td>
                                                <td style="border:2px solid #123456;">
                                                    <asp:LinkButton ID="CodBtn" runat="server" CommandArgument='<%#Eval("CI") %>' 
                                                        OnClick="CodiBtn_Click">Codirectora</asp:LinkButton>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    &nbsp;</td>
                                <td class="style5">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    &nbsp;&nbsp;<asp:Label ID="errorLb" runat="server" ForeColor="Red"></asp:Label>
            <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Volver" runat="server" onclick="Volver_Click" 
                        Text="Volver a Programa" CssClass="JCIstyle" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <br />
                </asp:View>
        <br />
            </asp:MultiView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
